package com.changeover.gwt.shared.result;

import net.customware.gwt.dispatch.shared.Result;

/**
 * The Login Result class.<br>
 * It contains login state of user
 * 
 * @author Roman Kostenko
 * 
 * @see LoginState
 */
public class LoginResult implements Result {

    private LoginState state;

    private String errorMessage;

    protected LoginResult() {
    }

    public LoginResult(LoginState state) {
        this.state = state;
    }

    public LoginResult(LoginState state, String errorMessage) {
        this.state = state;
        this.errorMessage = errorMessage;
    }

    public LoginState getState() {
        return state;
    }

    public void setState(LoginState state) {
        this.state = state;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

}
